import { getUserMenus } from '@/utils/request'

let menusData
let userInfo

export async function userMenus() {
  if (!menusData) {
    menusData = await getUserMenus()
  }
  return menusData
}